package oop;

public class Demo02PhoneParam {

    public static void main(String[] args) {
        Phone one = new Phone();
        one.brand = "苹果";
        one.price = 8388.1;
        one.color = "土豪金";

        method(one);    // 传递进去的参数骑士就是地址值
    }

    public static void method(Phone param) {
        System.out.println(param.brand);
        System.out.println(param.price);
        System.out.println(param.color);
    }
}
